function [ae_output,features] = AutoEncoder_train(inputs)

hiddenSize = 25;
ae_output = trainAutoencoder(inputs,hiddenSize,...
        'EncoderTransferFunction','satlin',...
        'DecoderTransferFunction','purelin',...
        'L2WeightRegularization',0.01,...
        'SparsityRegularization',4,...
        'SparsityProportion',0.10,...
        'MaxEpochs',100);
features = encode(ae_output,inputs);
end